<!DOCTYPE html>
<html lang="ja" xmlns="http://www.w3.org/1999/html">
<!--
Copyright (c) 2012, 2013, Takashi Toyoshima <toyoshim@gmail.com>
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file.
-->
<head>
    <meta charset="UTF-8">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link rel="shortcut icon" href="icon.png">
    <title>IRC over Socket.IO</title>
    <style>
        body {
            padding-top: 60px;
        }
    </style>
    <script src="import.js"></script>
    <script src="jquery.min.js"></script>
    <!-- TODO: Disable because of CSP breakage. See also, http://irc.hasb.ug/17
    <script src="socket.io.min.js"></script-->
    <script src="DNS.js"></script>
    <script src="MD5.js"></script>
    <script src="Unicode.js"></script>
    <script src="tcpclient.js"></script>
    <script src="tcpclient_socketio.js"></script>
    <script src="tcpclient_chromesocket.js"></script>
    <script src="tcpclient_websocket.js"></script>
    <script src="irc.js"></script>
    <script src="guirc.js"></script>
    <script src="gui.js"></script>
    <script src="setting.js"></script>
    <script src="i18n.js"></script>
</head>

<body>
<!-- --------------------------------------------------------------------------
// Navigation menu bar;
// [IRC over Socket.IO] [Main] [Preferences]
--------------------------------------------------------------------------- -->
<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a id="page0" class="brand" href="#about">IRC over Socket.IO</a>
            <div class="nav-collapse">
                <ul id="main-menu" class="nav">
                    <li><a id="page1" href="#main"><i class="icon-comment icon-white"></i> <span id="nav-main">Main</span></a></li>
                    <li class="active"><a id="page2" href="#config"><i class="icon-cog icon-white"></i> <span id="nav-config">Preferences</span></a></li>
                </ul>
            </div>
        </div>
    </div>
</div>

<!-- --------------------------------------------------------------------------
// Page 0; IRC over Socket.IO
--------------------------------------------------------------------------- -->
<div class="container-fluid" style="display: none;">
    <div class="container">
        <div class="row">
        <div class="span8">
            <div class="page-header">
                <h1>
                    IRC over Socket.IO&nbsp;
                    <small>version 0.9.6 &copy 2012, 2013 Takashi Toyoshima</small>
                </h1>
            </div>
        </div>
            <div class="span6 well">
                <h2>New BSD License</h2>
                <p>Copyright &copy 2012, 2013, Takashi Toyoshima &lt;toyoshim@gmail.com&gt;
                <p>All rights reserved.
                <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
                <ul>
                    <li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
                    <li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
                </ul>
                <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
            </div>
            <div class="span8">
                <div class="page-header">
                    <h1>
                        Socket.IO&nbsp;
                        <small>version 0.6.18 &copy 2012 LearnBoost</small>
                    </h1>
                </div>
            </div>
            <div class="span6 well">
                <h2>MIT License</h2>
                <p>Copyright &copy 2012 LearnBoost
                <p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
                <p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
                <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
            </div>
            <div class="span8">
                <div class="page-header">
                    <h1>
                        Twitter Bootstrap&nbsp;
                        <small>version 2.0.2 &copy 2012 Twitter, Inc.</small>
                    </h1>
                </div>
            </div>
            <div class="span6 well">
                <h2>Apache License v2.0</h2>
                <p>Copyright 2012 Twitter, Inc.
                <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
                <blockquote>
                    <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_">http://www.apache.org/licenses/LICENSE-2.0</a>
                </blockquote>
                <p> Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
            </div>
            <div class="span8">
                <div class="page-header">
                    <h1>
                        jQuery&nbsp;
                        <small>version 1.7.2 &copy 2012 jQuery Foundation</small>
                    </h1>
                </div>
            </div>
            <div class="span6 well">
                <h2>MIT License</h2>
                <p>Copyright &copy 2012 jQuery Foundation
                <p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
                <p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
                <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
            </div>
        </div>
    </div>
</div>

<!-- --------------------------------------------------------------------------
// Page 1; Main
--------------------------------------------------------------------------- -->
<div class="container-fluid" style="display: none;">
    <div class="row-fluid">
        <div class="span9">
            <div id="chat" class="span9">
                <ul id="chat-tab" class="nav nav-tabs">
                    <li class="active">
                        <a id="tab0" href="#"><i class="icon-home"></i> <span id="main-server">Server</span></a>
                    </li>
                </ul>
                <h3 id="topic" style="height: 30px; overflow: auto; text-overflow: ellipsis;">&nbsp;</h3>
                <div id="channels"><!-- channel messages -->
                    <div></div>
                </div>
                <form id="post">
                    <input id="input" type="text" class="span9" placeholder="Please type messages to post, then press enter.">
                </form>
                <div id="log"><!-- log message -->
                </div>
            </div>
        </div>
        <div id="users" class="span3">
            <form class="navbar-search pull-left">
                <i class="icon-user"></i> <span id="main-member">Members</span>&nbsp;&nbsp;<i class="icon-search"></i>
                <input id="search" type="text" class="search-qeury" style="width: 100px; border-radius: 12px" placeholder="Search">
            </form>
            <table class="table table-condensed">
                <!-- user list
                <tr><td>@</td><td>toyoshim</td></tr>
                -->
            </table>
        </div>
    </div>
</div>

<!-- --------------------------------------------------------------------------
// Page 2; Preferences
--------------------------------------------------------------------------- -->
<div class="container" style="display: block;">
    <div id="alert">
    </div>
    <form id="config" class="well form-horizontal">
        <fieldset>
            <legend><span id="config-legend-proxy">Proxy information</span></legend>
            <div class="control-group">
                <label id="config-label-proxy-type" class="control-label">Connection Type</label>
                <div class="controls docs-input-sizes">
                    <label class="radio">
                        <input type="radio" name="connection-type" checked><span id="config-span-proxy-socketio">Socket.IO Proxy</span><br>
                        <input type="radio" name="connection-type"><span id="config-span-proxy-websocket">WebSocket Proxy</span><br>
                        <input type="radio" name="connection-type"><span id="config-span-proxy-chromesocket">Direct Connection (chrome.socket)</span><br>
                    </label>
                </div>
                <label id="config-label-proxy-host" class="control-label">Hostname</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-proxy-host" class="span3" type="text" placeholder="Mandatory">
                </div>
                <label id="config-label-proxy-port" class="control-label">Port</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-proxy-port" class="span2" type="number" placeholder="Mandatory">
                </div>
                <label id="config-label-proxy-password" class="control-label">Password</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-proxy-password" class="span3" type="password" placeholder="Optional" value="">
                </div>
            </div>
            <legend><span id="config-legend-server">IRC Server Settings</span></legend>
            <div class="control-group">
                <label id="config-label-server-host" class="control-label">Hostname</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-server-host" class="span3" type="text" placeholder="Mandatory" value="chat.freenode.net">
                </div>
                <label id="config-label-server-port" class="control-label">Port</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-server-port" class="span2" type="number" placeholder="Mandatory" value="6665">
                </div>
                <label id="config-label-server-password" class="control-label">Password</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-server-password" class="span3" type="password" placeholder="Optional" value="">
                </div>
            </div>
            <legend><span id="config-legend-user">User Settings</span></legend>
            <div class="control-group">
                <label id="config-label-nickname" class="control-label">Nickname</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-nickname" class="span3" type="text" placeholder="Mandatory" value="">
                </div>
            </div>
            <legend><span id="config-legend-notification">Notification Settings</span></legend>
            <div class="control-group">
                <label id="config-label-keywords" class="control-label">Keywords</label>
                <div class="controls docs-input-sizes">
                    <input id="config-input-keywords" class="span5" type="text" placeholder="Optional (comma separated words)" value="">
                </div>
            </div>
            <hr>
            <button id="config-submit" type="submit" class="btn btn-primary">Save</button>
        </fieldset>
    </form>
</div>
</body>
</html>
